#*1.安装python环境以及依赖包
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git cmake python3-dev -y
sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev -y
sudo apt-get install libatlas-base-dev -y

#*2.配置python环境
 sudo apt-get install python3-pip
 sudo pip3 install -U pip testresources setuptools

#*3.安装pytorch先安装依赖：
sudo apt-get install libopenblas-base libopenmpi-dev
sudo pip3 install mpi4py
sudo pip3 install Cython

#*4.安装pyaudio
sudo apt-get install python3-pyaudio

#*5.安装大恒图像工业相机驱动
cd 
cd packages
tar -zxvf Galaxy_Linux-armhf_Gige-U3_32bits-64bits_1.3.2104.9022.tar.gz
cd Galaxy_Linux-armhf_Gige-U3_32bits-64bits_1.3.2104.9022/
bash ./Galaxy_camera.run

cd
cd packages
tar -zxvf Galaxy_Linux_Python_2.0.2103.9101.tar.gz
cd Galaxy_Linux_Python_2.0.2103.9101/api/
python3 setup.py build
sudo python3 setup.py install


#*6.copy  dist-packages
cd
cd packages
unzip dist-packages.zip
sudo apt-get remove python3-numpy
sudo cp -r ./dist-packages /usr/local/lib/python3.6

#*7.给所有的USB to TTL设备权限
cd
sudo gedit /etc/udev/rules.d/70-ttyusb.rules
*KERNEL=="ttyUSB[0-99]*", MODE="0666"

echo 8.安装play
sudo apt-get install sox
sudo apt-get install sox libsox-fmt-all --Y

# *9.安装googlepinyin
sudo apt-get install fcitx-googlepinyin -y

#*10.安装todesk
cd packages
sudo dpkg -i todesk_3.2.2_aarch64.deb
pip3 install torch-1.8.0-cp36-cp36m-linux_aarch64.whl
#*11.安装VSCode
sudo dpkg -i code_1.81.0-1690979901_arm64.deb












